package com.rongxun.api.dao.response;

import java.io.Serializable;

/**
 * 创建者     庄丰泽
 * 创建时间   2020/5/22 10:38
 * 描述
 * <p>
 * 更新者     $
 * 更新时间   $
 * 更新描述
 */
public class UserInfo implements Serializable {

    /**
     * id : 101652
     * username : 李
     * mt4_id : 20060
     * email :
     * phone : 18818571626
     * reg_time : 2019-01-21 16:39:28
     * sex : 2
     * id_card_status : 0
     * bank_status : 3
     * nickname : ~小白
     * face_img : https://img2.zfx.com/M00/02/61/wKgBLFxHxcmAS1pHAAv8MYPh0SQ527.jpg
     * surnames : 李
     * name : 李娜
     */

    private String user_type;
    private String token;
    private int    is_demoMt4id;
    private int    is_LiveMt4id;
    private int    default_mt4_id;
    private String id;
    private String username;
    private int    mt4_id;
    private String email;
    private String phone;
    private String reg_time;
    private int    sex;
    private String id_card_status;
    private String bank_status;
    private String nickname;
    private String face_img;
    private String surnames;
    private String name;
    private String is_real;
    private String servers_url;
    private String mt4_password;
    private String openAccounts_result;
    private String yx_accid;
    private String yx_token;
    private String Live_url;
    private String mt4_server;
    private String websocket_url;
    private String pc_token;

    private String total_left_amount;
    private String total_available_advance;
    private String total_net_amount;
    private String agent_mode;

    public String getAgent_mode() {
        return agent_mode;
    }

    public void setAgent_mode(String agent_mode) {
        this.agent_mode = agent_mode;
    }

    public String getTotal_left_amount() {
        return total_left_amount;
    }

    public void setTotal_left_amount(String total_left_amount) {
        this.total_left_amount = total_left_amount;
    }

    public String getTotal_available_advance() {
        return total_available_advance;
    }

    public void setTotal_available_advance(String total_available_advance) {
        this.total_available_advance = total_available_advance;
    }

    public String getTotal_net_amount() {
        return total_net_amount;
    }

    public void setTotal_net_amount(String total_net_amount) {
        this.total_net_amount = total_net_amount;
    }

    public String getPc_token() {
        return pc_token;
    }

    public void setPc_token(String pc_token) {
        this.pc_token = pc_token;
    }

    public String getWebsocket_url() {
        return websocket_url;
    }

    public void setWebsocket_url(String websocket_url) {
        this.websocket_url = websocket_url;
    }

    public String getMt4_server() {
        return mt4_server;
    }

    public void setMt4_server(String mt4_server) {
        this.mt4_server = mt4_server;
    }

    public String getLive_url() {
        return Live_url;
    }

    public void setLive_url(String live_url) {
        Live_url = live_url;
    }

    public String getYx_accid() {
        return yx_accid;
    }

    public void setYx_accid(String yx_accid) {
        this.yx_accid = yx_accid;
    }

    public String getYx_token() {
        return yx_token;
    }

    public void setYx_token(String yx_token) {
        this.yx_token = yx_token;
    }

    public String getOpenAccounts_result() {
        return openAccounts_result;
    }

    public void setOpenAccounts_result(String openAccounts_result) {
        this.openAccounts_result = openAccounts_result;
    }

    public String getMt4_password() {
        return mt4_password;
    }

    public void setMt4_password(String mt4_password) {
        this.mt4_password = mt4_password;
    }

    public String getServers_url() {
        return servers_url;
    }

    public void setServers_url(String servers_url) {
        this.servers_url = servers_url;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getIs_demoMt4id() {
        return is_demoMt4id;
    }

    public void setIs_demoMt4id(int is_demoMt4id) {
        this.is_demoMt4id = is_demoMt4id;
    }

    public int getIs_LiveMt4id() {
        return is_LiveMt4id;
    }

    public void setIs_LiveMt4id(int is_LiveMt4id) {
        this.is_LiveMt4id = is_LiveMt4id;
    }

    public int getDefault_mt4_id() {
        return default_mt4_id;
    }

    public void setDefault_mt4_id(int default_mt4_id) {
        this.default_mt4_id = default_mt4_id;
    }

    public String getIs_real() {
        return is_real;
    }

    public void setIs_real(String is_real) {
        this.is_real = is_real;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getMt4_id() {
        return mt4_id;
    }

    public void setMt4_id(int mt4_id) {
        this.mt4_id = mt4_id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getReg_time() {
        return reg_time;
    }

    public void setReg_time(String reg_time) {
        this.reg_time = reg_time;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getId_card_status() {
        if (id_card_status == null || id_card_status.isEmpty()) {
            return 3;
        }
        return Integer.parseInt(id_card_status);
    }

    public void setId_card_status(String id_card_status) {
        this.id_card_status = id_card_status;
    }

    public int getBank_status() {
        if (bank_status == null || bank_status.isEmpty()) {
            return 3;
        }
        return Integer.parseInt(bank_status);
    }

    public void setBank_status(String bank_status) {
        this.bank_status = bank_status;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getFace_img() {
        return face_img;
    }

    public void setFace_img(String face_img) {
        this.face_img = face_img;
    }

    public String getSurnames() {
        return surnames;
    }

    public void setSurnames(String surnames) {
        this.surnames = surnames;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
